<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>glTexBufferRange - OpenGL ES 3.2 Reference Pages</title>
    <link rel="stylesheet" type="text/css" href="opengl-man.css"/>
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"/>
    <script type="text/x-mathjax-config">
            MathJax.Hub.Config({
                MathML: {
                    extensions: ["content-mathml.js"]
                },
                tex2jax: {
                    inlineMath: [['$','$'], ['\\(','\\)']]
                }
            });
        </script>
    <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"/>
  </head>
  <body>
    <header/>
    <div class="refentry" id="glTexBufferRange">
      <div class="titlepage"/>
      <div class="refnamediv">
        <h2>Name</h2>
        <p>glTexBufferRange — attach a range of a buffer object's data store to a buffer texture object</p>
      </div>
      <div class="refsynopsisdiv">
        <h2>C Specification</h2>
        <div class="funcsynopsis">
          <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
            <tr>
              <td>
                <code class="funcdef">void <strong class="fsfunc">glTexBufferRange</strong>(</code>
              </td>
              <td>GLenum <var class="pdparam">target</var>, </td>
            </tr>
            <tr>
              <td> </td>
              <td>GLenum <var class="pdparam">internalFormat</var>, </td>
            </tr>
            <tr>
              <td> </td>
              <td>GLuint <var class="pdparam">buffer</var>, </td>
            </tr>
            <tr>
              <td> </td>
              <td>GLintptr <var class="pdparam">offset</var>, </td>
            </tr>
            <tr>
              <td> </td>
              <td>GLsizeiptr <var class="pdparam">size</var><code>)</code>;</td>
            </tr>
          </table>
          <div class="funcprototype-spacer"> </div>
        </div>
      </div>
      <div class="refsect1" id="parameters">
        <h2>Parameters</h2>
        <div class="variablelist">
          <dl class="variablelist">
            <dt>
              <span class="term">
                <em class="parameter">
                  <code>target</code>
                </em>
              </span>
            </dt>
            <dd>
              <p>
                    Specifies the target to which the texture object is
                    bound for <code class="function">glTexBufferRange</code>. Must be
                    <code class="constant">GL_TEXTURE_BUFFER</code>.
                </p>
            </dd>
            <dt>
              <span class="term">
                <em class="parameter">
                  <code>internalFormat</code>
                </em>
              </span>
            </dt>
            <dd>
              <p>
                    Specifies the internal format of the data in the store
                    belonging to <em class="parameter"><code>buffer</code></em>.
                </p>
            </dd>
            <dt>
              <span class="term">
                <em class="parameter">
                  <code>buffer</code>
                </em>
              </span>
            </dt>
            <dd>
              <p>
                    Specifies the name of the buffer object whose storage to
                    attach to the active buffer texture.
                </p>
            </dd>
            <dt>
              <span class="term">
                <em class="parameter">
                  <code>offset</code>
                </em>
              </span>
            </dt>
            <dd>
              <p>
                    Specifies the offset of the start of the range of the
                    buffer's data store to attach.
                </p>
            </dd>
            <dt>
              <span class="term">
                <em class="parameter">
                  <code>size</code>
                </em>
              </span>
            </dt>
            <dd>
              <p>
                    Specifies the size of the range of the buffer's data
                    store to attach.
                </p>
            </dd>
          </dl>
        </div>
      </div>
      <div class="refsect1" id="description">
        <h2>Description</h2>
        <p>
            <code class="function">glTexBufferRange</code> attaches a range of the
            data store of a specified buffer object to a specified texture
            object, and specify the storage format for the texture image
            found found in the buffer object. The texture object must be a
            buffer texture.
        </p>
        <p>
            If <em class="parameter"><code>buffer</code></em> is zero, any buffer object
            attached to the buffer texture is detached and no new buffer
            object is attached. If <em class="parameter"><code>buffer</code></em> is
            non-zero, it must be the name of an existing buffer object.
        </p>
        <p>
            The start and size of the range are specified by
            <em class="parameter"><code>offset</code></em> and <em class="parameter"><code>size</code></em>
            respectively, both measured in basic machine units.
            <em class="parameter"><code>offset</code></em> must be greater than or equal to
            zero, <em class="parameter"><code>size</code></em> must be greater than zero, and
            the sum of <em class="parameter"><code>offset</code></em> and
            <em class="parameter"><code>size</code></em> must not exceed the value of
            <code class="constant">GL_BUFFER_SIZE</code> for
            <em class="parameter"><code>buffer</code></em>. Furthermore,
            <em class="parameter"><code>offset</code></em> must be an integer multiple of the
            value of
            <code class="constant">GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT</code>.
        </p>
        <p>
            <em class="parameter"><code>internalformat</code></em> specifies the storage
            format, and must be one of the following sized internal formats:
        </p>
        <div class="informaltable">
          <table style="border-collapse: collapse; border-top: 2px solid ; border-bottom: 2px solid ; border-left: 2px solid ; border-right: 2px solid ; ">
            <colgroup>
              <col style="text-align: left; " class="col1"/>
              <col style="text-align: left; " class="col2"/>
              <col style="text-align: left; " class="col3"/>
              <col style="text-align: left; " class="col4"/>
              <col style="text-align: center; " class="col5"/>
              <col style="text-align: center; " class="col6"/>
              <col style="text-align: center; " class="col7"/>
              <col style="text-align: center; " class="col8"/>
            </colgroup>
            <thead>
              <tr>
                <th style="text-align: left; border-right: 2px solid ; "> </th>
                <th style="text-align: left; border-right: 2px solid ; "> </th>
                <th style="text-align: left; border-right: 2px solid ; "> </th>
                <th style="text-align: left; border-right: 2px solid ; "> </th>
                <th style="text-align: center; border-bottom: 2px solid ; " colspan="4">
                    <span class="bold"><strong> Component </strong></span>
                </th>
              </tr>
              <tr>
                <th style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <span class="bold">
                    <strong>Sized Internal Format</strong>
                  </span>
                </th>
                <th style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <span class="bold">
                    <strong>Base Type</strong>
                  </span>
                </th>
                <th style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <span class="bold">
                    <strong>Components</strong>
                  </span>
                </th>
                <th style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <span class="bold">
                    <strong>Norm</strong>
                  </span>
                </th>
                <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</th>
                <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">1</th>
                <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">2</th>
                <th style="text-align: center; border-bottom: 2px solid ; ">3</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R8</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ubyte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">YES</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R16</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ushort</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">YES</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R16F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">half</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R32F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">float</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R8I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">byte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R16I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">short</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R32I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">int</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R8UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ubyte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R16UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ushort</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_R32UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">uint</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">1</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG8</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ubyte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">YES</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG16</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ushort</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">YES</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG16F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">half</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG32F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">float</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG8I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">byte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG16I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">short</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG32I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">int</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG8UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ubyte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG16UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ushort</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RG32UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">uint</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">2</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">0</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGB32F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">float</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">3</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGB32I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">int</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">3</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGB32UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">uint</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">3</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">1</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA8</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">uint</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">YES</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA16</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">short</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">YES</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA16F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">half</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA32F</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">float</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA8I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">byte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA16I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">short</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA32I</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">int</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA8UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ubyte</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                  <code class="constant">GL_RGBA16UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">ushort</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">B</td>
                <td style="text-align: center; border-bottom: 2px solid ; ">A</td>
              </tr>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; ">
                  <code class="constant">GL_RGBA32UI</code>
                </td>
                <td style="text-align: left; border-right: 2px solid ; ">uint</td>
                <td style="text-align: left; border-right: 2px solid ; ">4</td>
                <td style="text-align: left; border-right: 2px solid ; ">NO</td>
                <td style="text-align: center; border-right: 2px solid ; ">R</td>
                <td style="text-align: center; border-right: 2px solid ; ">G</td>
                <td style="text-align: center; border-right: 2px solid ; ">B</td>
                <td style="text-align: center; ">A</td>
              </tr>
            </tbody>
          </table>
        </div>
        <p>
            When a range of a buffer object is attached to a buffer texture,
            the specified range of the buffer object's data store is taken
            as the texture's texel array. The number of texels in the buffer
            texture's texel array is given by
                $$ \left\lfloor { size \over { components \times sizeof(base\_type) } } \right\rfloor $$
            where $components$ and $base\_type$ are the element count and
            base data type for elements, as specified in the table above.
            The number of texels in the texel array is then clamped to the
            value of the implementation-dependent limit
            <code class="constant">GL_MAX_TEXTURE_BUFFER_SIZE</code>. When a buffer
            texture is accessed in a shader, the results of a texel fetch
            are undefined if the specified texel coordinate is negative, or
            greater than or equal to the clamped number of texels in the
            texel array.
        </p>
      </div>
      <div class="refsect1" id="errors">
        <h2>Errors</h2>
        <p>
            <code class="constant">GL_INVALID_ENUM</code> is generated by
            <code class="function">glTexBufferRange</code> if
            <em class="parameter"><code>target</code></em> is not
            <code class="constant">GL_TEXTURE_BUFFER</code>.
        </p>
        <p>
            <code class="constant">GL_INVALID_ENUM</code> is generated if
            <em class="parameter"><code>internalformat</code></em> is not one of the sized
            internal formats described above.
        </p>
        <p>
            <code class="constant">GL_INVALID_OPERATION</code> is generated if
            <em class="parameter"><code>buffer</code></em> is not zero and is not the name of
            an existing buffer object.
        </p>
        <p>
            <code class="constant">GL_INVALID_VALUE</code> is generated if
            <em class="parameter"><code>offset</code></em> is negative, if
            <em class="parameter"><code>size</code></em> is less than or equal to zero, or if
            <em class="parameter"><code>offset</code></em> + <em class="parameter"><code>size</code></em> is
            greater than the value of <code class="constant">GL_BUFFER_SIZE</code>
            for <em class="parameter"><code>buffer</code></em>.
        </p>
        <p>
            <code class="constant">GL_INVALID_VALUE</code> is generated if
            <em class="parameter"><code>offset</code></em> is not an integer multiple of the
            value of
            <code class="constant">GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT</code>.
        </p>
      </div>
      <div class="refsect1" id="associatedgets">
        <h2>Associated Gets</h2>
        <p>
            <a class="citerefentry" href="glGet.xhtml"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>
            with argument
            <code class="constant">GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT</code>
        </p>
        <p>
            <a class="citerefentry" href="glGetTexLevelParameter.xhtml"><span class="citerefentry"><span class="refentrytitle">glGetTexLevelParameter</span></span></a>
            with arguments <code class="constant">GL_TEXTURE_BUFFER_OFFSET</code> or
            <code class="constant">GL_TEXTURE_BUFFER_SIZE</code>.
        </p>
      </div>
      <div class="refsect1" id="versions">
        <h2>Version Support</h2>
        <div class="informaltable">
          <table style="border-collapse: collapse; border-top: 2px solid ; border-bottom: 2px solid ; border-left: 2px solid ; border-right: 2px solid ; ">
            <colgroup>
              <col style="text-align: left; "/>
              <col style="text-align: center; " class="firstvers"/>
              <col style="text-align: center; "/>
              <col style="text-align: center; "/>
              <col style="text-align: center; " class="lastvers"/>
            </colgroup>
            <thead>
              <tr>
                <th style="text-align: left; border-right: 2px solid ; ">
                 
            </th>
                <th style="text-align: center; border-bottom: 2px solid ; " colspan="4">
                <span class="bold"><strong>OpenGL ES API Version</strong></span>
            </th>
              </tr>
              <tr>
                <th style="text-align: left; border-right: 2px solid ; border-bottom: 2px solid ; ">
                <span class="bold"><strong>Function Name</strong></span>
            </th>
                <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">
                <span class="bold"><strong>2.0</strong></span>
            </th>
                <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">
                <span class="bold"><strong>3.0</strong></span>
            </th>
                <th style="text-align: center; border-right: 2px solid ; border-bottom: 2px solid ; ">
                <span class="bold"><strong>3.1</strong></span>
            </th>
                <th style="text-align: center; border-bottom: 2px solid ; ">
                <span class="bold"><strong>3.2</strong></span>
            </th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td style="text-align: left; border-right: 2px solid ; ">
                  <code class="function">glTexBufferRange</code>
                </td>
                <td style="text-align: center; border-right: 2px solid ; ">-</td>
                <td style="text-align: center; border-right: 2px solid ; ">-</td>
                <td style="text-align: center; border-right: 2px solid ; ">-</td>
                <td style="text-align: center; ">✔</td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class="refsect1" id="seealso">
        <h2>See Also</h2>
        <p>
            <a class="citerefentry" href="glTexBuffer.xhtml"><span class="citerefentry"><span class="refentrytitle">glTexBuffer</span></span></a>.
        </p>
      </div>
      <div class="refsect1" id="Copyright">
        <h2>Copyright</h2>
        <p>
            Copyright <span class="trademark"/>© 2012-2015 Khronos Group.
            This material may be distributed subject to the terms and conditions set forth in
            the Open Publication License, v 1.0, 8 June 1999.
            <a class="link" href="http://opencontent.org/openpub/" target="_top">http://opencontent.org/openpub/</a>.
        </p>
      </div>
    </div>
    <footer/>
  </body>
</html>
